package com.api.demo.dto.sync;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.util.List;

/**
 * @description: 同步接口接收回单
 * @author: yanming
 * @createDate: 2022/10/12 11:29
 */
@Data
@EqualsAndHashCode(callSuper = true)
@ApiModel(description = "同步接口接收回单")
public class SyncDataReceiptDTO extends SyncDataDTO {

    private static final long serialVersionUID = -1325104016408641378L;
    @ApiModelProperty(value = "订单id")
    @NotNull(message = "订单ID不能为空")
    private String orderId;

    @ApiModelProperty(value = "回单详细")
    @NotEmpty(message = "集合不能为空")
    private List<SyncDataReceiptInfoDTO> syncReceiptInfoDTOList;

}